#include "Global.h"
#include "Memory.h"
#include "Utility.h"
#include "NumberAllocation.pb.h"
#include "NumberAllocation.h"

int main()
{
	NumberAllocation na;
	if (!na.init())
		return 0;

	std::string inpStr;
	char inpBuf[1025] = "";
	while (na.run())
	{
		std::cin.getline(inpBuf, 1024);
		std::vector<std::string> tok;
		sUti.strTok(tok, inpBuf, " ");
		if (!na.command(tok))
			std::cout << "[" << inpBuf << "]" << std::endl;

		sMem.zero(inpBuf, sizeof(inpBuf));
	}

	na.quit();
	return 0;
}